﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BSCMFF.Core.BusinessLayer;
using Telerik.Web.UI;

namespace BSCMFF.Web.Pages.working
{
    public partial class TestingRadTreeListUserControlEdit : BSCMFF.Core.MultiLanguagePage
    {
        private List<BSCTreeListItem> bscdata;

        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!IsPostBack)
            //{
                //bscdata = BSCTreeListManager.GetDataByDate(DateTime.Today);
                //RadTreeList1.DataSource = bscdata;
                //RadTreeList1.DataBind();
            //}
        }

        protected void RadTreeList1_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e)
        {
            bscdata = BSCTreeListManager.GetDataByDate(DateTime.Today);
            RadTreeList1.DataSource = bscdata;
            
        }
    }
}